package com.jxt.app.util;


import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;



/**
 * 消息分发过滤器
 * 
 * @author 
 * @version 1.0 
 * @since 
 */
public class AutoRun extends HttpServlet
{
		/**
	 * 
	 */
		private static final long serialVersionUID = 1L;
	
	
		//当servlet类被加载时，执行本函数
		//在本方法中放置代码即可完成自动加载
		public void init(ServletConfig config) throws ServletException
		{
		//super.init(config);
	
		//此处放置需要自动执行的代码
			//MainApnsSend mainApnsSend=new MainApnsSend();
			//mainApnsSend.Autorun();
			System.out.println("*****************I 'm ok now.***************");
		}

		//Process the HTTP Get request
		public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
		{
		}
	
		//Process the HTTP Post request
		//标准的POST方法处理，由http的POST方法触发（调用）
		public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
		{
		}
	
		//Clean up resources
		public void destroy()
		{
	
		}
	}